#!/usr/bin/python3
class Student:
    def __init__(self,name,age,gender):
        self.name = name
        self.age = age
        self.gender = gender
    def __str__(self):
        # 将当前对象数据返回
        return (f'Student[{self.name},{self.age},{self.gender}]')


if __name__ == '__main__':
        student1 = Student("张三", 18, "男")
        print(student1)
        student2 = Student("小美", 15, '女')
        print(student2)

